{echo:JS::import('dialog?skin=brief');}
{echo:JS::import('dialogtools');}
{echo:JS::import('form');}
<form action="" method="post">
<div class="tools_bar clearfix">
    <a class="icon-delicious" href="{url:/customer/kou_list}"> 全部记录</a>
    <span class="fr"><a href='javascript:;' id="condition" class="icon-search" style="" > 筛选条件</a><input id="condition_input" type="hidden" name="condition" value="{$condition}"></span>
</div>
<table class="default" >
    <tr>
        <th>订单号</th>
        <th>订单金额</th>
        <th>商家</th>
        <th>秒到商家金额</th>
        <th>平台扣除费用1</th>   
        <th>平台扣除费用2</th>
        <th>时间</th>
    </tr>
    {query:name=pt_kou as bl fields=bl.*,us.name join=left join user as us on bl.seller_id eq us.id where= $where order= bl.id desc id=$obj page=1 desc }
        <tr class="{if:$key%2==1}odd{/if}">
        <td>{$item['order_no']}</td>
        <td>{$item['order_amount']}</td>
        <td>{$item['name']}</td>
        <td>{$item['fan_seller_je']}</td>
        <td>{$item['kou_je1']}</td>
        <td>{$item['kou_je2']}</td>
        <td>{$item['create_time']}</td>
        </tr>
    {/query}
</table>
</form>
<div class="page_nav">
{echo:$obj->pageBar()}
</div>
<script type="text/javascript">
    var form =  new Form();
    $("#condition").on("click",function(){
        $("body").Condition({input:"#condition_input",okVal:'高级搜索',callback:function(data){tools_submit({action:'{url:/customer/kou_list}',method:'get'});},data:{'create_time':{name:'时间'},'name':{name:'商家'},'order_no':{name:'订单号'},'order_amount':{name:'订单金额'},'fan_seller_je':{name:'秒到商家金额'},'kou_je1':{name:'平台扣除费用1'},'kou_je2':{name:'平台扣除费用2'}
        }});
    });
</script>
